package com.hualan.service;

import com.hualan.pojo.PubUser;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface PubUserService {
    PageInfo<PubUser> getUserList(PubUser pubUser, int pageNum, int pageSize);
    int addUser(PubUser pubUser);
    int deleteUserById(Integer id);
    int deleteUsersByIds(List<Integer> ids);
    int editUser(PubUser pubUser);
    //---------------------------------

    PubUser login(String username, String password);
    boolean register(PubUser user);
    boolean bindPhone(int id, String phone);
    boolean changePassword(int id, String oldPassword, String newPassword);
    PubUser getUserById(int id);
    //---------------------------------
}